import { Tag } from 'antd';
export default () => {
  return [
    {
      title: 'id',
      dataIndex: 'id',
      algin: 'center',
    },
    {
      title: '名称',
      dataIndex: 'name',
      algin: 'center',
    },
    {
      title: '字段列表',
      dataIndex: 'fields',
      algin: 'center',
      render: (text, record) =>
        record?.list.map((item) => <Tag color="magenta">{item?.label}</Tag>),
    },
  ];
};
